
import { AREA, DATASOURCECACHE, DEFCACHEKEY } from '../../constance';
import { setDefData } from '../../tool/cacheDataManager';
import commonSearch from './commonSearch';

export default function(props) {
        let queryInfo = props.search.getQueryInfo(AREA.searchId, true); //必输项为空时，返回值为false;
        if (!queryInfo || !queryInfo.querycondition) {
                return;
        }
        // 缓存查询条件
        setDefData(DATASOURCECACHE.dataSourceListCacheKey, DEFCACHEKEY.queryCacheKey, queryInfo);
        // 查询
        commonSearch.call(this, props, queryInfo);
}
